package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@ApiModel("")
@TableName("spu_extension")
public class SpuExtension {
    /**
     * 商品扩展信息表id
     */
    @TableId(value = "spu_extension", type = IdType.AUTO)
    @ApiModelProperty(value = "商品扩展信息表id")
    private Integer spuExtendId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Integer spuId;
    /**
     * 销量
     */
    @ApiModelProperty(value = "销量")
    private int saleNum;
    /**
     * 实际库存
     */
    @ApiModelProperty(value = "实际库存")
    private int actualStock;
    /**
     * 锁定库存
     */
    @ApiModelProperty(value = "锁定库存")
    private int lockStock;
    /**
     * 可售卖库存
     */
    @ApiModelProperty(value = "可售卖库存")
    private int stock;
}
